package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.SoftFavorites;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class SoftFavoritesProxy extends AbstractProxyEntity<SoftFavoritesProxy, SoftFavorites> {

    private static final Class<SoftFavorites> entityClass = SoftFavorites.class;

    public static final SoftFavoritesProxy TABLE = createTable().createEmpty();

    public static SoftFavoritesProxy createTable() {
        return new SoftFavoritesProxy();
    }

    public SoftFavoritesProxy() {
    }

    /**
     * 收藏ID
     * {@link SoftFavorites#getFavId}
     */
    public SQLStringTypeColumn<SoftFavoritesProxy> favId() {
        return getStringTypeColumn("favId");
    }

    /**
     * 用户ID
     * {@link SoftFavorites#getUserId}
     */
    public SQLStringTypeColumn<SoftFavoritesProxy> userId() {
        return getStringTypeColumn("userId");
    }

    /**
     * 软件ID
     * {@link SoftFavorites#getSoftId}
     */
    public SQLStringTypeColumn<SoftFavoritesProxy> softId() {
        return getStringTypeColumn("softId");
    }

    /**
     * {@link SoftFavorites#getRemarks}
     */
    public SQLStringTypeColumn<SoftFavoritesProxy> remarks() {
        return getStringTypeColumn("remarks");
    }

    @Override
    public Class<SoftFavorites> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public SoftFavoritesProxyFetcher FETCHER = new SoftFavoritesProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class SoftFavoritesProxyFetcher extends AbstractFetcher<SoftFavoritesProxy, SoftFavorites, SoftFavoritesProxyFetcher> {

        public SoftFavoritesProxyFetcher(SoftFavoritesProxy proxy, SoftFavoritesProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * 收藏ID
         * {@link SoftFavorites#getFavId}
         */
        public SoftFavoritesProxyFetcher favId() {
            return add(getProxy().favId());
        }

        /**
         * 用户ID
         * {@link SoftFavorites#getUserId}
         */
        public SoftFavoritesProxyFetcher userId() {
            return add(getProxy().userId());
        }

        /**
         * 软件ID
         * {@link SoftFavorites#getSoftId}
         */
        public SoftFavoritesProxyFetcher softId() {
            return add(getProxy().softId());
        }

        /**
         * {@link SoftFavorites#getRemarks}
         */
        public SoftFavoritesProxyFetcher remarks() {
            return add(getProxy().remarks());
        }

        @Override
        protected SoftFavoritesProxyFetcher createFetcher(SoftFavoritesProxy cp, AbstractFetcher<SoftFavoritesProxy, SoftFavorites, SoftFavoritesProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new SoftFavoritesProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
